package net.sky.oa.service.docs.impl;

import java.util.List;

import javax.annotation.Resource;

import net.sky.oa.dao.docs.DocFileUserDao;
import net.sky.oa.model.DocFileUser;
import net.sky.oa.service.docs.DocFileUserService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;
import com.htsoft.core.web.paging.PagingBean;

@Service
@Transactional
public class DocFileUserServiceImpl extends BaseServiceImpl<DocFileUser> implements DocFileUserService {
	
	private DocFileUserDao docFileUserDao;
	
	@Resource
	public void setDocFileUserDao(DocFileUserDao docFileUserDao) {
		super.setDao(docFileUserDao);
		this.docFileUserDao = docFileUserDao;
	} 
	public List<DocFileUser>  findByIds(Long fileId,Long susrId,Long fusrId,Long rusrId,PagingBean pagingBean)
	{
		return docFileUserDao.findByIds(fileId, susrId,fusrId,rusrId,pagingBean);
	}
	public List<DocFileUser> findByParams(Long fileId, Long susrId,
			Long fusrId, Long rusrId, String fileName, String sendtime,
			PagingBean pagingBean) {
		return docFileUserDao.findByParams(fileId, susrId, fusrId, rusrId, fileName, sendtime, pagingBean);
	}
	
	
}
